$(function(){
	$("#st-next-btn").click(function(){
		showTaskPropor();
		showChooseTask();
	});
	
	$("#st-last-btn").click(function(){
		showTaskTypePropor();
	});
	
	$("#tp-last-btn").click(function(){
		showSelectTask();
	});
	
	$("#tp-next-btn").click(function() {
		$("#ensure-build-score-layer").modal("show");
	});
	
	$("#cancel").click(function() {
		$("#ensure-build-score-layer").modal("hide");
	});
	
});

var showTaskTypePropor = function(){
	//$("#progress-bar")[0].style.width = "5%";
	$("#task-type-proportion-btn")[0].className = "current-progress";
	$("#ttp-img")[0].src="../image/mark.png";
	$("#task-type-proportion")[0].style.display = "block";
	
	$("#select-task-btn")[0].className = "";
	$("#st-img")[0].src="../image/noMark.png";
	$("#select-task")[0].style.display = "none";
	
	$("#task-proportion-btn")[0].className = "";
	$("#tp-img")[0].src="../image/noMark.png";
	$("#task-proportion")[0].style.display = "none";
}
var showSelectTask = function(){
	//$("#progress-bar")[0].style.width = "50%";
	
	$("#select-task-btn")[0].className = "current-progress";
	$("#st-img")[0].src="../image/mark.png";
	$("#select-task")[0].style.display = "block";
	
	$("#task-type-proportion-btn")[0].className = "";
	$("#ttp-img")[0].src="../image/noMark.png";
	$("#task-type-proportion")[0].style.display = "none";
	
	$("#task-proportion-btn")[0].className = "";
	$("#tp-img")[0].src="../image/noMark.png";
	$("#task-proportion")[0].style.display = "none";
}
var showTaskPropor = function(){
	//$("#progress-bar")[0].style.width = "100%";
	
	$("#task-proportion-btn")[0].className = "current-progress";
	$("#tp-img")[0].src="../image/mark.png";
	$("#task-proportion")[0].style.display = "block";
	
	$("#task-type-proportion-btn")[0].className = "";
	$("#ttp-img")[0].src="../image/noMark.png";
	$("#task-type-proportion")[0].style.display = "none";
	
	$("#select-task-btn")[0].className = "";
	$("#st-img")[0].src="../image/noMark.png";
	$("#select-task")[0].style.display = "none";
}